package com.lujianfei.productprice.ui.cart;

import android.content.Context;

import java.util.List;

public interface CartContract {
    interface Model{

        List<CartEntity> loadData();

        void addQuantity(CartEntity data);

        void minusQuantity(CartEntity data);

        List<CartEntity> getData();

        double getTotalPrice();

        boolean submit();

        void clearCart();

        void delete(CartEntity cartEntity);
    }
    interface View{

        long getShopId();

        void setData(List<CartEntity> cartEntities);

        void setTotalPrice(double totalPrice);

        String getShopName();

        Context getContext();
    }
    interface Presenter{

        void loadData();

        void addQuantity(CartEntity data);

        void minusQuantity(CartEntity data);

        boolean submit();

        void showLongClickDialog(CartEntity cartEntity);
    }
}
